#include <stdio.h>
void main(void){
    int a[5]={1,2,3,4,5};
    printf("sizeof(a)=%d\n",sizeof(a));
    printf("sizeof(&a)=%d\n",sizeof(&a));
    printf("sizeof(a[1])=%d\n",sizeof(a[1]));
    printf("sizeof(&a[1])=%d\n",sizeof(&a[1]));
    for (int i=0;i<5;i++){
        printf("a[%d]=%d\n",i,a[i]);
    }
    int *p;
     for (int i=0;i<5;i++){
       p=(int *)(a+i);
       printf("*p=%d,i=%d\n",*p,i);
    }
    int *p1=a;
    for (int i=0;i<5;i++){
        printf("p1[%d]=%d\n",i,p1[i]);
    }
    int *p2=a;
    for (int i=0;i<5;i++){
        printf("i=%d,p2=%d\n",i,*p2);
        p2++;
    }
}